package hibernateUtil;

import org.hibernate.Session;

import MemoryDB.YuanTable;
import db.GenericHibernateDAO;
import db.HibernateUtil;

public class ViewselectionDao extends GenericHibernateDAO<Viewselection, Integer>{

	public YuanTable GetInfoFromTable()
	{
		return GetTable("from Viewselection");
	}
	
	public void insertViewselectionInfo(String mHql)
	{
		this.UpdateSql(mHql, HibernateUtil.getPlayerhaviorSessionFactory().getCurrentSession());
	}
	
	@Override
	protected Session getSession()
	{
		// TODO Auto-generated method stub
		return HibernateUtil.getPlayerhaviorSessionFactory().getCurrentSession();
	}
}